import os
from flask_script import Manager

from app import create_app

# 获取配置文件
app = create_app(os.getenv('FLASK_CONFIG') or 'config')
manager = Manager(app)

if __name__ == '__main__':
    manager.run()
